import request from '@/utils/request'

// 查询尽调清单子列表
export function listDealDdList(query) {
  return request({
    url: '/list/dealDdList/list',
    method: 'get',
    params: query
  })
}

// 查询尽调清单子详细
export function getDealDdList(id) {
  return request({
    url: '/list/dealDdList/' + id,
    method: 'get'
  })
}

// 保存尽调清单子
export function saveDealDdList(data) {
  return request({
    url: '/list/dealDdList/save',
    method: 'post',
    data: data
  })
}

// 删除尽调清单子
export function delDealDdList(query) {
  return request({
    url: '/list/dealDdList/delete',
    method: 'delete',
    params: query
  })
}

// 导出尽调清单子
export function exportDealDdList(query) {
  return request({
    url: '/list/dealDdList/export',
    method: 'get',
    params: query
  })
}

// 根据主表ID获取子表项数据
export function ddItemList(param) {
  return request({
    url: '/list/dealDdList/ddItemList',
    method: 'get',
    params: param
  })
}

